package com.heima.controller;

import com.heima.pojo.AlertValue;
import com.heima.pojo.TaskType;
import com.heima.service.TaskService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Slf4j
@Api("工单类型接口")
public class TaskTypeController {

    @Autowired
    private TaskService taskService;
    /**
     * 获取所有的工单类型
     */
    @GetMapping("/api/task-service/taskType/list")
    public List<TaskType> queryAllType(AlertValue value){
        log.info("v:{}",value);
        return taskService.queryAllType();
    }
}
